<form action="buscar.php" method="get">

<div style="width:990px; margin-top:0px; padding-top:0px;">
<div class="gh-fl" style="background:url(images/banner-busca-novo.png) no-repeat">
 <div style="margin:0px auto; width:930px"> 
 <table width="906" border="0" cellpadding="0" cellspacing="0">
   <tr height="5px">
      <td >&nbsp;</td>
      <td >&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr >
      <td width="63%" valign="top" style="color:#FFF; font-size:12px" ><span style="font-size:16px; margin-left:15px; margin-right:13px">Eu quero</span><input style="color:#CCC; font-style:italic; padding:5px; font-size:20px; width:75%" autocomplete="OFF"  name="busca" id="mybox" maxlength="300" size="40" class="gh-tb" type="text" value="<?php if(!$_GET["busca"]){ echo "Digitar aqui a pesquisa"; }else{ echo $_GET["busca"];} ?>" onClick="if(this.value=='Digitar aqui a pesquisa'){this.value=''}; this.style.color='#333'; this.style.fontStyle='normal'; this.style.boder='solid 2px #ccc'" onBlur="if(this.value==''){this.value='Digitar aqui a pesquisa';}; this.style.color='#CCC'; this.style.fontStyle='italic'" /> 
        &nbsp;<span style="font-size:16px">Em</span>
        <div style="padding-left:165px">&nbsp;Em:
          <input type="radio" name="estado" <? if($_GET["estado"]==1){ echo "checked";} ?> value="1" />Novos
          <input type="radio" name="estado" value="0" <? if(isset($_GET["estado"]) and $_GET["estado"]==0 ){ echo "checked";} ?> />Usados
<input name="estado" type="radio" value="2" <? if($_GET["estado"]==2 OR !isset($_GET["estado"])){ echo "checked";} ?> />Ambos</div>        </td>
      <td width="28%" valign="top" ><select name="cat" style="padding:10px">
<option value="todas" selected>Todas as categorias</option>
<?php 
$dadoscatesq	= $_cat->lista(false,false,"ORDER BY titulo");
foreach($dadoscatesq as $cat){
?>
<option value="<?php echo $cat["id"]; ?>" <?php if($_GET["cat"] == $cat["id"]){ echo "selected";} ?>><?php echo $cat["titulo"]; ?></option>
<?php } ?>
</select>
        <div>&nbsp;</div>        </td>
      <td width="9%" valign="top"><a class="gh-ss">
        <input onClick="if(document.getElementById('mybox').value =='Digitar aqui a pesquisa'){document.getElementById('mybox').style.border='solid 2px #F00'; return false;}"  type="submit" class="butao_sub"  style="padding:10px; background:#93C" value="Buscar!" /><!--#93C-->
      </a>
        <div>&nbsp;</div></td>
    </tr>
    <tr >
      <td >&nbsp;</td>
      <td >&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  
  </table>
 </div>
</div>
</div>
</form>